﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GenUtil.Util
{
    public class IrpSessionContext
    {
         public IrpSessionContext(IrpSessionContext irpSessionContext)
        {
            _Token = irpSessionContext.Token;
            _CurrentData = irpSessionContext.CurrentData;
            _CurrentAction = irpSessionContext.CurrentAction;
            _ReturnYear = irpSessionContext.ReturnYear;
            _QtrNo = irpSessionContext.QtrNo;
            _FuelType = irpSessionContext.FuelType;
            _FuelTypeDesc = irpSessionContext.FuelTypeDesc;
            _IsAync = irpSessionContext.IsAync;
            tabArray = irpSessionContext.getTabArray();
            amendNbr = irpSessionContext.getAmendNbr();
            prepayId = irpSessionContext.getPrepayId();
            renewalYr = irpSessionContext.getRenewalYr();
            appBusinessId = irpSessionContext.getAppBusinessId();
            fromProgram = irpSessionContext.getFromProgram();
            decalno = irpSessionContext.getDecalNo();
            appFutUse = irpSessionContext.getAppFutUse();
            userAllowedApp = irpSessionContext.getUserAllowedApp();
            userFutUse = irpSessionContext.getUserFutUse();
            userId = irpSessionContext.getUserId();
            userPass = irpSessionContext.getUserPass();
            corUid = irpSessionContext.getCorUid();
            userName = irpSessionContext.getUserName();
            userSecurityGroup = irpSessionContext.getUserSecurityGroup();
            userSecurityLevel = irpSessionContext.getUserSecurityLevel();
            userSecurityType = irpSessionContext.getUserSecurityType();
            accountName = irpSessionContext.getAccountName();
            can = irpSessionContext.getCan();
            AuthAccNumber = irpSessionContext.getAuthAccNumber();
            enterpriseMenu = irpSessionContext.getEnterpriseMenu();
            errorToUser = irpSessionContext.getErrorToUser();
            fleetExpCcYy = irpSessionContext.getFleetExpCcYy();
            fleetExpMm = irpSessionContext.getFleetExpMm();
            fleetNumber = irpSessionContext.getFleetNumber();
            irpFunction = irpSessionContext.getIrpFunction();
            mainMenu = irpSessionContext.getMainMenu();
            messageToUser = irpSessionContext.getMessageToUser();
            registrantName = irpSessionContext.getRegistrantName();
            WIPFlag = irpSessionContext.getWIPFlag();
            sessionNbr = irpSessionContext.getSessionNbr();
            supplementDesc = irpSessionContext.getSupplementDesc();
            suppStatus = irpSessionContext.getSuppStatus();
            tabMenu = irpSessionContext.getTabMenu();
            tabMenuArray = irpSessionContext.getTabMenuArray();
            toProgram = irpSessionContext.getToProgram();
            transectionId = irpSessionContext.getTransectionId();
            warningToUser = irpSessionContext.getWarningToUser();
            irpEdit = irpSessionContext.getIrpEdit();
            supplementNbr = irpSessionContext.getSupplementNbr();
            permit = irpSessionContext.getPermit();
            haveToForward = irpSessionContext.getHaveToForward();
            extAcctNbr = irpSessionContext.getExtAcctNbr();
            invoicenumber = irpSessionContext.getInvoicenumber();
            tin = irpSessionContext.getTin();
            oldFleetExpCcYy = irpSessionContext.getOldFleetExpCcYy();
            oldFleetExpMm = irpSessionContext.getOldFleetExpMm();
            vehSupp = irpSessionContext.getVehSupp();
            oldFleetNumber = irpSessionContext.getOldFleetNumber();
            oldSupplementNbr = irpSessionContext.getOldSupplementNbr();
            oldSeqNo = irpSessionContext.getOldSeqNo();
            oldVehId = irpSessionContext.getOldVehId();
            iftaMenu = irpSessionContext.getIftaMenu();
            SupComment = irpSessionContext.getSupComment();
            _AuditEndDate = irpSessionContext.getAuditEndDate();
            _UseCarriersInventory = irpSessionContext.UseCarriersInventory;
            _SubmitDate = irpSessionContext.getSubmitDate();
            _ImageFile = irpSessionContext.getImageFile();
            operationLevel = irpSessionContext.getOperationLevel();
            permitAccountNo = irpSessionContext.getPermitAccountNo();

            //Added by Jasmita on 12th Dec
            permitCcYy = irpSessionContext.getPermitCcYy();
            permitCd = irpSessionContext.getPermitCd();
            permitSupSeqNo = irpSessionContext.getPermitSupSeqNo();
            permitNo = irpSessionContext.getPermitNo();
            permitStatus = irpSessionContext.getPermitStatus().Trim();
            //----------------------------------------------------//

            //Added by Jasmita on 15th Dec,2008
            permitType = irpSessionContext.getPermitType();

            //--------------------------------------------------//
            queueId = irpSessionContext.getQueueId();
            isCheckRoute = irpSessionContext.getIsCheckRoute();
            queueStatus = irpSessionContext.getQueueStatus(); //added by Biji - User accept/reject route
            queueType = irpSessionContext.getQueueType(); 
        }

        public IrpSessionContext()
        {
        }

        private Boolean _IsFavOpen = false;
        public Boolean IsFavOpen
        {
            get
            {
                return _IsFavOpen;
            }
            set
            {
                _IsFavOpen = value;
            }
        }
        private int permitAccountNo; //Hardcoded  //variable contains permit accountno.
        public int PermitAccountNo
        {
            get { return permitAccountNo; }
            set { permitAccountNo = value; }
        }
        public int getPermitAccountNo()
        {
            return permitAccountNo;
        }
        public void setPermitAccountNo(int value)
        {
            permitAccountNo = value;
        }


        private Boolean _AutomatedRoutingFlag = true;
        public Boolean AutomatedRoutingFlag
        {
            get
            {
                return _AutomatedRoutingFlag;
            }
            set
            {
                _AutomatedRoutingFlag = value;
            }
        }
        public Boolean getAutomatedRoutingFlag()
        {
            return _AutomatedRoutingFlag;
        }
        public void setAutomatedRoutingFlag(Boolean value)
        {
            _AutomatedRoutingFlag = value;
        }
        //Added by Jasmita on 12th Dec

        private short permitCcYy = 0;//HardCoded  //variable contains permit year.
        public short PermitCcYy
        {
            get { return permitCcYy; }
            set { permitCcYy = value; }
        }
        public short getPermitCcYy()
        {
            return permitCcYy;
        }
        public void setPermitCcYy(short value)
        {
            permitCcYy = value;
        }

        private string permitCd = "";//HardCoded //variable contains permit cd.
        public string PermitCd
        {
            get { return permitCd; }
            set { permitCd = value; }
        }
        public string getPermitCd()
        {
            return permitCd;
        }
        public void setPermitCd(string value)
        {
            permitCd = value;
        }

        private int permitSupSeqNo = 0; //HardCoded //variable contains permit supplement sequence number.
        public int PermitSupSeqNo
        {
            get { return permitSupSeqNo; }
            set { permitSupSeqNo = value; }
        }
        public int getPermitSupSeqNo()
        {
            return permitSupSeqNo;
        }
        public void setPermitSupSeqNo(int value)
        {
            permitSupSeqNo = value;
        }

        private int permitNo = 0;  //variable contains permit number.
        public int PermitNo
        {
            get { return permitNo; }
            set { permitNo = value; }
        }
        public int getPermitNo()
        {
            return permitNo;
        }
        public void setPermitNo(int value)
        {
            permitNo = value;
        }

        private int queueId = 0;  //variable contains Work Queue Id.
        public int QueueId
        {
            get { return queueId; }
            set { queueId = value; }
        }
        public int getQueueId()
        {
            return queueId;
        }
        public void setQueueId(int value)
        {
            queueId = value;
        }

        private string permitStatus;  //variable contains permit status.
        public string PermitStatus
        {
            get { return permitStatus; }
            set { permitStatus = value; }
        }
        public string getPermitStatus()
        {
            return permitStatus;
        }
        public void setPermitStatus(string value)
        {
            permitStatus = value;
        }

        //----------------------------------------------------------------//

        //Added by Jasmita on 15th Dec,2008 
        private string permitType;  //variable contains permit type(fuel,trip,odow).
        public string PermitType
        {
            get { return permitType; }
            set { permitType = value; }
        }
        public string getPermitType()
        {
            return permitType;
        }
        public void setPermitType(string value)
        {
            permitType = value;
        }
        //------------------------------------------------------------//

        private int permitCount = 1;
        public int PermitCount
        {
            get
            {
                return permitCount;
            }
            set
            {
                permitCount = value;
            }
        }

        public int getPermitCount()
        {
            return permitCount;
        }

        public void setPermitCount(int permitCount)
        {
            this.permitCount = permitCount;
        }

        private string startPermitNbr;
        public string StartPermitNbr
        {
            get
            {
                return startPermitNbr;
            }
            set
            {
                startPermitNbr = value;
            }
        }
        public string getStartPermitNbr()
        {
            return startPermitNbr;
        }

        public void setStartPermitNbr(string startPermitNbr)
        {
            this.startPermitNbr = startPermitNbr;
        }

        private string endPermitNbr;
        public string EndPermitNbr
        {
            get
            {
                return endPermitNbr;
            }
            set
            {
                endPermitNbr = value;
            }
        }
        public string getEndPermitNbr()
        {
            return endPermitNbr;
        }
        public void setEndPermitNbr(string endPermitNbr)
        {
            this.endPermitNbr = endPermitNbr;
        }

        private DateTime _AuditEndDate;

        public DateTime AuditEndDate
        {
            get { return _AuditEndDate; }
            set { _AuditEndDate = value; }
        }

        private Boolean _UseCarriersInventory;

        public Boolean UseCarriersInventory
        {
            get { return _UseCarriersInventory; }
            set { _UseCarriersInventory = value; }
        }

        private string _Token;

        public string Token
        {
            get { return _Token; }
            set { _Token = value; }
        }
       

        private object _CurrentData;
        public object CurrentData
        {
            get
            {
                return _CurrentData;
            }
            set
            {
                _CurrentData = value;
            }

        }


        private string _CurrentAction;
        public string CurrentAction
        {
            get
            {
                return _CurrentAction;
            }

            set
            {
                _CurrentAction = value;
            }

        }

        public int ReturnYear
        {
            get
            {
                return _ReturnYear;
            }
            set
            {
                _ReturnYear = value;
            }

        }
        public int QtrNo
        {
            get
            {
                return _QtrNo;
            }
            set
            {
                _QtrNo = value;
            }

        }
        public string FuelType
        {
            get
            {
                return _FuelType;
            }
            set
            {
                _FuelType = value;
            }

        }
        public string FuelTypeDesc
        {
            get
            {
                return _FuelTypeDesc;
            }
            set
            {
                _FuelTypeDesc = value;
            }

        }

        public Boolean IsAync
        {
            get
            {
                return _IsAync;
            }
            set
            {
                _IsAync = value;
            }

        }
        private Boolean _IsAync = false;
        private String AuthAccNumber = null;

        //	if user is not restricted for this account no's this 
        private int _QtrNo = 0;														//	variable will remain 'null'.
        private int _ReturnYear = 0;
        private string _FuelType = null;
        private string _FuelTypeDesc = null;
        private String appBusinessId = null;			//	Variable contains the application Business Id which is unique
        //	user name and Timestamp combination (unique for application).
        private long extAcctNbr = 0;            /// THis variable used 4 external users account number
        private int invoicenumber = 0;
        private int prepayId = 0;
        private String userId = null;
        private String userPass = null;
        //Added by Amit Das
        private int corUid = -1;
        private String userName = null;
        private String userSecurityLevel = null;
        private String userSecurityGroup = null;
        private String userSecurityType = null;
        private String userAllowedApp = null;
        //	private int      regId					= 0;        // Registrant Id in Vehicle
        private String userFutUse = null;			// for future use only.


        private String appFutUse = null;			// for Application future use only.

        private long transectionId = 0;			// transection id for translog transection.

        private long sessionNbr = 0;			// session id for translog session.

        //no more in use 
        //private long		accountNumber			= 0;			// Stores Account Number on which user is working.

        private String accountName = null;			// Stores current accounts name.

        private short fleetNumber = 0;			// Stores current fleet number on which user is working.


        private String WIPFlag = null;

        private String registrantName = null;			// Stores the Registrent name of fleet.

        private short fleetExpCcYy = 0;		    // Fleet Expire Year of the current working module.


        private short fleetExpMm = 0;		    // Stores Fleet Expire Month.

        private short oldFleetNumber = 0;			// Stores current fleet number on which user is working.

        private short oldFleetExpCcYy = 0;			// fleet expire year of previous year

        private short oldFleetExpMm = 0;			// fleet expire month of previous month

        private short oldSupplementNbr = 0;			// Stores old supplement number

        private String oldVehId = null;			//to Store the vehicle to be transferred to new Fleet

        private String oldSeqNo = null;			// to Store the vehicle to new Seq No

        private short supplementNbr = 0;			// Stores current supplement number

        private String supplementDesc = null;			// Stores the supplement Description.

        private String suppStatus = null;			// supplement status code form database.

        private String suppStatusDesc = null;			// Supplement status description.

        private String errorToUser = null;			// Stores Error to User if required.

        private String warningToUser = null;			// Stores Warning to User if required.

        private String messageToUser = null;			// Stores the message to user if need to display.

        private String irpFunction = null;			// irp function, the function in which the user is working.

        private String toProgram = null;			// Stores To program (if coming from edit mode which program to call after complition of task)

        private String fromProgram = null;			// Stores from which program it is comming. 

        private short[] tabMenuArray = { 0,			// stores tab menu array on the bases of which it will display the IRP sub menu.
													0,
													0,
													0,
													0,
													0,
													0,
													0
													 };
        //Added by Nimisha to make new array in IRP
        private Boolean[] tabArray = { true, true, true, true, true, true, true, true };

        //	private String 		copyTo					= null;			// Stores the copy to functionality.
        //
        //	private int 		copyFromAccNbr			= 0;			// Used for favorite copy account no.
        //
        //	private short 		copyFromFleetNbr 		= (short)0;		// Used for favorite copy fleet no.
        //
        //	private short 		copyFromFleetExpCcYy 	= (short)0; 	// Used for favorite copy fleet year.
        //
        //	private short 		copyFromFleetExpMm 		= (short)0;		// Used for favorite copy fleet month.
        //
        //	private short 		copyFromWgtGrpNo 		= (short)0;		// Used for favorite copy weight group no.
        //
        //	private int 		copyFromVehId			= 0;			// Used for favorite copy vehicle id.
        //	
        //	private int 		copyFromSeqNbr			= 0;			// Used for favorite copy Sequence no.
        //
        //	private short 		copyFromSuppNo			= (short)0;		// Used for favorite copy supplement no.

        private String irpEdit = null; 		// N or NULL- normal operation like acct->fleet-> , Y-asynchronous operation....
        private String haveToForward = null;
        // when irpEdit is 'Y' if user click on different menu option after that on any screen press proceed then 
        // control forward to 'haveToForward' if < current program else normal variable
        // 
        // for every action's start method's irpEdit == Y block 
        // check toProgram and fromProgram is equal or not 
        // if equal then irpEdit reset to null and 'haveToForward' to null otherwise 
        // haveToForward to fromProgram     

        private String enterpriseMenu = null;			//	Variable contains the IRP Enterprise Menu object	

        private String mainMenu = null;			//	Variable contains the IRP Main Menu object

        private String tabMenu = null;			//	Variable contains the IRP sub Menu object

        private int can = 0;         //  Variable contains the CAN Value
        private int tin = 0;
        private String vehSupp = null;

        private String iftaMenu = null;			//	Variable contains the IFTA Menu object

        private int amendNbr = 0;
        private int usdot;

        //Added by Jasmita on 26th August,2008 to resolve an issue in web processing logic for external user login
        private short fleetNumberFromSelectClient = 0;

        public short getFleetNumberFromSelectClient()
        {
            return fleetNumberFromSelectClient;
        }

        public void setFleetNumberFromSelectClient(short s)
        {
            fleetNumberFromSelectClient = s;
        }
        //-------------------------------------------------------------------------//

        //Added by Nimisha to get and set tabarray value

        public Boolean[] getTabArray()
        {
            return tabArray;
        }
        public void setTabArray(Boolean[] ses)
        {
            tabArray = ses;
        }



        public int getAmendNbr()
        {
            return amendNbr;
        }
        public void setAmendNbr(int value)
        {
            amendNbr = value;
        }
        public void setPrepayId(int value)
        {
            prepayId = value;
        }

        public int getPrepayId()
        {
            return prepayId;
        }

        private short renewalYr = 0;
        public short getRenewalYr()
        {
            return renewalYr;
        }
        public void setRenewalYr(short value)
        {
            renewalYr = value;
        }
        /**
         * 
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getAppBusinessId()
        {
            return appBusinessId;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getFromProgram()
        {
            return fromProgram;
        }


        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setAppBusinessId(String value)
        {
            appBusinessId = value;
        }


        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setFromProgram(String value)
        {
            fromProgram =
                value;
        }

        private int decalno;
        public void setDecalNo(int value)
        {
            decalno = value;
        }

        public int getDecalNo()
        {
            return decalno;
        }
        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getAppFutUse()
        {
            return appFutUse;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getUserAllowedApp()
        {
            return userAllowedApp;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getUserFutUse()
        {
            return userFutUse;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getUserId()
        {

            return userId;
        }
        public String getUserPass()
        {
            return userPass;
        }

        public void setUserPass(String value)
        {
            userPass = value;
        }

        public int getCorUid()
        {
            return corUid;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getUserName()
        {
            return userName;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getUserSecurityGroup()
        {
            return userSecurityGroup;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getUserSecurityLevel()
        {
            return userSecurityLevel;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : String
         * @return
         * 
         */
        public String getUserSecurityType()
        {
            return userSecurityType;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setAppFutUse(String value)
        {
            appFutUse = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setUserAllowedApp(String value)
        {
            userAllowedApp = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setUserFutUse(String value)
        {
            userFutUse = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setUserId(String value)
        {
            userId = value;
        }
        public void setCorUid(int value)
        {
            corUid = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setUserName(String value)
        {
            userName = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setUserSecurityGroup(String value)
        {
            userSecurityGroup = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setUserSecurityLevel(String value)
        {
            userSecurityLevel = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 7, 2006
         * return type : void
         * @param string
         * 
         */
        public void setUserSecurityType(String value)
        {
            userSecurityType = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getAccountName()
        {
            return accountName;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : int
         * @return
         * 
         */
        public long getAccountNumber()
        {
            return can;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getAuthAccNumber()
        {
            return AuthAccNumber;
        }







        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getEnterpriseMenu()
        {
            return enterpriseMenu;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getErrorToUser()
        {
            return errorToUser;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : short
         * @return
         * 
         */
        public short getFleetExpCcYy()
        {
            return fleetExpCcYy;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : short
         * @return
         * 
         */
        public short getFleetExpMm()
        {
            return fleetExpMm;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : short
         * @return
         * 
         */
        public short getFleetNumber()
        {
            return fleetNumber;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getIrpFunction()
        {
            return irpFunction;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getMainMenu()
        {
            return mainMenu;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getMessageToUser()
        {
            return messageToUser;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getRegistrantName()
        {
            return registrantName;
        }

        public String getWIPFlag()
        {
            return WIPFlag;
        }



        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : long
         * @return
         * 
         */
        public long getSessionNbr()
        {
            return sessionNbr;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getSupplementDesc()
        {
            return supplementDesc;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getSuppStatus()
        {
            return suppStatus;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getSuppStatusDesc()
        {
            return suppStatusDesc;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getTabMenu()
        {
            return tabMenu;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : short[]
         * @return
         * 
         */
        public short[] getTabMenuArray()
        {
            return tabMenuArray;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getToProgram()
        {
            return toProgram;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : long
         * @return
         * 
         */
        public long getTransectionId()
        {
            return transectionId;
        }


        public String getWarningToUser()
        {
            return warningToUser;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setAccountName(String value)
        {
            accountName = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param i
         * 
         */
        public void setAccountNumber(long i)
        {
            can = Convert.ToInt32(i);
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setAuthAccNumber(String value)
        {
            AuthAccNumber = value;
        }






        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setEnterpriseMenu(String value)
        {
            enterpriseMenu = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setErrorToUser(String value)
        {
            errorToUser = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param s
         * 
         */
        public void setFleetExpCcYy(short s)
        {
            fleetExpCcYy = s;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param s
         * 
         */
        public void setFleetExpMm(short s)
        {
            fleetExpMm = s;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param s
         * 
         */
        public void setFleetNumber(short s)
        {
            fleetNumber = s;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setIrpFunction(String value)
        {
            irpFunction = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setMainMenu(String value)
        {
            mainMenu = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setMessageToUser(String value)
        {
            messageToUser = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setRegistrantName(String value)
        {
            registrantName = value;
        }

        public void setWIPFlag(String value)
        {
            WIPFlag = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param l
         * 
         */
        public void setSessionNbr(long l)
        {
            sessionNbr = l;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setSupplementDesc(String value)
        {
            supplementDesc = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setSuppStatus(String value)
        {
            suppStatus = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setSuppStatusDesc(String value)
        {
            suppStatusDesc = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setTabMenu(String value)
        {
            tabMenu = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param ses
         * 
         */
        public void setTabMenuArray(short[] ses)
        {
            tabMenuArray = ses;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setToProgram(String value)
        {
            toProgram = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param l
         * 
         */
        public void setTransectionId(long l)
        {
            transectionId = l;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setWarningToUser(String value)
        {
            warningToUser = value;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : String
         * @return
         * 
         */
        public String getIrpEdit()
        {
            return irpEdit;
        }

        /**
         * Owner name : nshah
         * Date : Feb 20, 2006
         * return type : void
         * @param string
         * 
         */
        public void setIrpEdit(String value)
        {
            irpEdit = value;
        }

        /**
         * @return
         */
        public short getSupplementNbr()
        {
            return supplementNbr;
        }

        /**
         * @param s
         */
        public void setSupplementNbr(short s)
        {
            supplementNbr = s;
        }

        private bool permit;
        public void setPermit(bool value)
        {
            permit = value;
        }

        public bool getPermit()
        {
            return permit;
        }

        /**
         * @return
         */
        public String getHaveToForward()
        {
            return haveToForward;
        }

        /**
         * @param string
         */
        public void setHaveToForward(String value)
        {
            haveToForward = value;
        }

        /**
         * @return
         */
        public long getExtAcctNbr()
        {
            return extAcctNbr;
        }

        /**
         * @param l
         */
        public void setExtAcctNbr(long l)
        {
            extAcctNbr =
                l;
        }
        /**
         * Owner name : chirag
         * Date : Nov 23, 2007
         * return type : datetime
         * @param datetime
         * Start
         */


        //For Image File
        private string _ImageFile;

        public string ImageFile
        {
            get { return _ImageFile; }
            set { _ImageFile = value; }
        }
        public void setImageFile(string value)
        {
            _ImageFile = value;
        }
        public string getImageFile()
        {
            return _ImageFile;
        }

        //For Submit date

        private DateTime _SubmitDate;

        public DateTime SubmitDate
        {
            get { return _SubmitDate; }
            set { _SubmitDate = value; }
        }


        public void setSubmitDate(DateTime value)
        {
            _SubmitDate = value;
        }

        public DateTime getSubmitDate()
        {
            return _SubmitDate;
        }
        /// <summary>
        /// *** End
        /// </summary>

       
        /**
         * @return
         */
        public int getInvoicenumber()
        {
            return invoicenumber;
        }

        /**
         * @param l
         */
        public void setInvoicenumber(int i)
        {
            invoicenumber = i;
        }



        /**
         * @return
         */
        public int getCan()
        {
            return can;
        }

        /**
         * @param i
         */
        public void setCan(int i)
        {
            can = i;
        }

        public int getTin()
        {
            return tin;
        }

        public void setTin(int i)
        {
            tin = i;
        }
        public int getUSDOT()
        {
            return usdot;
        }
        public void setUSDOT(int value)
        {
            usdot = value;
        }

        /**
         * @return
         */
        public short getOldFleetExpCcYy()
        {
            return oldFleetExpCcYy;
        }

        /**
         * @return
         */
        public short getOldFleetExpMm()
        {
            return oldFleetExpMm;
        }

        /**
         * @param s
         */
        public void setOldFleetExpCcYy(short s)
        {
            oldFleetExpCcYy = s;
        }

        /**
         * @param s
         */
        public void setOldFleetExpMm(short s)
        {
            oldFleetExpMm = s;
        }

        /**
         * @return
         */
        public String getVehSupp()
        {
            return vehSupp;
        }

        /**
         * @param string
         */
        public void setVehSupp(String value)
        {
            vehSupp = value;
        }

        /**
         * @return
         */
        public short getOldFleetNumber()
        {
            return oldFleetNumber;
        }

        /**
         * @param s
         */
        public void setOldFleetNumber(short s)
        {
            oldFleetNumber = s;
        }

        /**
         * @return
         */
        public short getOldSupplementNbr()
        {
            return oldSupplementNbr;
        }

        /**
         * @param s
         */
        public void setOldSupplementNbr(short s)
        {
            oldSupplementNbr = s;
        }

        /**
         * @return
         */
        public String getOldSeqNo()
        {
            return oldSeqNo;
        }

        /**
         * @return
         */
        public String getOldVehId()
        {
            return oldVehId;
        }

        /**
         * @param string
         */
        public void setOldSeqNo(String value)
        {
            oldSeqNo = value;
        }

        /**
         * @param string
         */
        public void setOldVehId(String value)
        {
            oldVehId = value;
        }

        /**
         * @return
         */
        public String getIftaMenu()
        {
            return iftaMenu;
        }

        /**
         * @param string
         */
        public void setIftaMenu(String value)
        {
            iftaMenu = value;
        }

        //private DateTime auditEndDate;

        public void setAuditEndDate(DateTime value)
        {
            _AuditEndDate = value;
        }

        public DateTime getAuditEndDate()
        {
            return _AuditEndDate;
        }

        private string SupComment;

        public void setSupComment(string value)
        {
            SupComment = value;
        }

        public string getSupComment()
        {
            return SupComment;
        }

        public string ToStringForError()
        {
            StringBuilder errorstring = new StringBuilder();
            errorstring.Append("Logging Time:" + DateTime.Now.ToString());
            errorstring.Append(",Client ID:" + getCan().ToString());
            errorstring.Append(",Fleet No.:" + getFleetNumber().ToString());
            return errorstring.ToString();
        }
        string operationLevel = null;
        public string getOperationLevel()
        {
            return operationLevel;
        }
        public void setOperationLevel(string operationLevel)
        {
            this.operationLevel = operationLevel;
        }
        private Boolean isInternal;
        public Boolean IsInternal
        {
            set
            {
                isInternal = value;
            }
            get
            {
                return isInternal;
            }
        }
        private string role;
        public string Role
        {
            set
            {
                role = value;
            }
            get
            {
                return role;
            }
        }



        private string irpMessage;
        public string IrpMessage
        {
            get { return irpMessage; }
            set { irpMessage = value; }
        }

        //***Addded By Nimisha Prajapati on 22 Sep 09 for populating new permit data 

        private String permitFunction = null;
        public String getPermitFunction()
        {
            return permitFunction;
        }
        public void setPermitFunction(String value)
        {
            permitFunction = value;
        }
        //***End

        //***Addded By Nimisha Prajapati on 7 Oct 09 for setting new permit supplement sequence number. 

        private int oldpermitSupSeqNo = 0;
        public int OldPermitSupSeqNo
        {
            get { return oldpermitSupSeqNo; }
            set { oldpermitSupSeqNo = value; }
        }
        public int getOldPermitSupSeqNo()
        {
            return oldpermitSupSeqNo;
        }
        public void setOldPermitSupSeqNo(int value)
        {
            oldpermitSupSeqNo = value;
        }
        //***End

        private string csetActivityId;
        public string CsetActivityId
        {
            get { return csetActivityId; }
            set { csetActivityId = value; }
        }
        public string getCsetActivityId()
        {
            return csetActivityId;
        }
        public void setCsetActivityId(string value)
        {
            csetActivityId = value;
        }

        private string csetPresentationName;
        public string CsetPresentationName
        {
            get { return csetPresentationName; }
            set { csetPresentationName = value; }
        }
        public string getCsetPresentationName()
        {
            return csetPresentationName;
        }
        public void setCsetPresentationName(string value)
        {
            csetPresentationName = value;
        }

        private string csetPssword;
        public string CsetPssword
        {
            get { return csetPssword; }
            set { csetPssword = value; }
        }
        public string getCsetPssword()
        {
            return csetPssword;
        }
        public void setCsetPssword(string value)
        {
            csetPssword = value;
        }

        private string isCheckRoute = "";
        public string IsCheckRoute
        {
            get { return isCheckRoute; }
            set { isCheckRoute = value; }
        }
        public string getIsCheckRoute()
        {
            return isCheckRoute;
        }
        public void setIsCheckRoute(string value)
        {
            isCheckRoute = value;
        }
        private string isFromApproval = "";
        public string IsFromApproval
        {
            get { return isFromApproval; }
            set { isFromApproval = value; }
        }
        public string getIsFromApproval()
        {
            return isFromApproval;
        }
        public void setIsFromApproval(string value)
        {
            isFromApproval = value;
        }

        private bool isADACompliant;
        public bool IsADACompliant
        {
            get { return isADACompliant; }
            set { isADACompliant = value; }
        }
        public bool getIsADACompliant()
        {
            return isADACompliant;
        }
        public void setIsADACompliant(bool value)
        {
            isADACompliant = value;
        }

        private string widgetAccountNbr;
        public string WidgetAccountNbr
        {
            get { return widgetAccountNbr; }
            set { widgetAccountNbr = value; }
        }

        private string widgetCan;
        public string WidgetCan
        {
            get { return widgetCan; }
            set { widgetCan = value; }
        }

        private string widgetUsdot;
        public string WidgetUsdot
        {
            get { return widgetUsdot; }
            set { widgetUsdot = value; }
        }

        private string widgetTin;
        public string WidgetTin
        {
            get { return widgetTin; }
            set { widgetTin = value; }
        }

        private string widgetRegistrantName;
        public string WidgetRegistrantName
        {
            get { return widgetRegistrantName; }
            set { widgetRegistrantName = value; }
        }

        private string webLogin;
        public string WebLogin
        {
            get { return webLogin; }
            set { webLogin = value; }
        }

        private string moduleName;
        public string ModuleName
        {
            get { return moduleName; }
            set { moduleName = value; }
        }

        private string activityName;
        public string ActivityName
        {
            get { return activityName; }
            set { activityName = value; }
        }

        private string action;
        public string Action
        {
            get { return action; }
            set { action = value; }
        }
        /// <summary>
        /// Queue Status - To maintain the Approval Queue Status in Routing.
        /// </summary>
        private string queueStatus = "";
        public string QueueStatus
        {
            get { return queueStatus; }
            set { queueStatus = value; }
        }
        public string getQueueStatus()
        {
            return queueStatus;
        }
        public void setQueueStatus(string value)
        {
            queueStatus = value;
        }
        ///
        private string queueType = "";
        public string QueueType
        {
            get { return queueType; }
            set { queueType = value; }
        }
        public string getQueueType()
        {
            return queueType;
        }
        public void setQueueType(string value)
        {
            queueType = value;
        }

        private string theme;

        public string Theme
        {
            get { return theme; }
            set { theme = value; }
        }

        private string appApproach = "";
        public string AppApproach 
        {
            get { return appApproach; }
            set { appApproach = value; }
        }

        public string getAppApproach()
        {
            return appApproach;
        }
        public void setAppApproach(string apAprch)
        {
            appApproach = apAprch;
        }
        
    }
    }

